/*
 * @Author: 老刘
 * @Date: 2020-04-29 15:51:38
 * @Description: Loading
 */
Page({
	data: {
		isRequest: false,
		loadMask: false,
		loadData: false
	},
	onClickLoading () {
		this.setData({
			isRequest: true
		});
		setTimeout(() => {
			this.setData({
				isRequest: false
			});
		}, 3000);
	},
	onClickAlertLoading () {
		this.setData({
			loadMask: true
		});
		setTimeout(() => {
			this.setData({
				loadMask: false
			});
		}, 3000);
	},
	onClickPageLoading () {
		this.setData({
			loadData: true
		});
		setTimeout(() => {
			this.setData({
				loadData: false
			});
		}, 3000);
	}
});
